package com.app.designpattern.structural.decorator.v2;

/**
 * USER: zjw
 * DATA: 2019/4/15 0015
 * TIME: 下午 2:46
 */
public class EggDecorator extends ADecorator {
    public EggDecorator(ABattercake aBattercake) {
        super(aBattercake);
    }

    @Override
    public String desc() {
        return super.desc() +" 加一个鸡蛋";
    }

    @Override
    public int cost() {
        return super.cost() + 1;
    }
}
